package com.javajun.custom;

import java.util.HashMap;

import org.springframework.data.domain.Page;

public class EasyuiUtils {
	@SuppressWarnings("rawtypes")
	public static HashMap<String, Object> buildDatagridResult(Page page) {
		HashMap<String , Object> result=new HashMap<>();
		result.put("total", page.getTotalElements());
		result.put("rows",page.getContent());
		return result;
	}
}
